<ul class="btlevel2">
{loop $tags $i $t}
{if $t[catname] != ''}
<li><a href="{DT_PATH}{if $t[moduleid]=='5'}sell/{elseif $t[moduleid]=='6'}buy/{elseif $t[moduleid]=='33'}sell1/{/if}list-{$t[catid]}.html">{$t[catname]}</a></li>
{/if}
{/loop}
</ul>